package com.qys.livesMall.financial.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class FinancialOnlineVO implements Serializable {

    @Schema(description = "线上理财id")
    private Long id;

    @Schema(description = "理财名")
    private String name;

    @Schema(description = "封面图")
    private String cover;

    @Schema(description = "最大金额")
    private BigDecimal maxAmount;

    @Schema(description = "利率")
    private BigDecimal interestRate;

    @Schema(description = "收益周期（天数）")
    private Integer period;

    @Schema(description = "合同模板编码")
    private String contractTemplateCode;

    @Schema(description = "限制用户等级")
    private Integer limitUserLevel;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime startTime;

    @Schema(description = "周期结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime finishTime;

    @Schema(description ="模拟购买人数")
    private Integer buyUser;

    @Schema(description ="实际+模拟允许总人数")
    private Integer dummyUser;

    @Schema(description ="实际购买人数")
    private Integer realityCount;

    @Schema(description = "0下架,1上架")
    private Byte status;

}
